/** COPYRIGHT(C) 2008. Loc Phan. All Rights Reserved.
    A listener class that pop up a window when button is clicked
    @author Loc Phan
    @version 1.01 2008-12-1
*/

package edu.sjsu.cs.phan.gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Date;

import javax.swing.JOptionPane;


public class ButtonListener implements ActionListener
{
   /**
    * Perform an action: Display date
    */
   public void actionPerformed(ActionEvent e)
   {
      Date d = new Date();
      JOptionPane.showMessageDialog(null, d.toString());
   }
   
}